package com.ruibang.glass.portal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruibang.glass.common.utils.validateannotation.NotBlank;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("t_sys_role")
public class RoleEntity extends BaseEntity implements Serializable {

    //角色id
    @TableId(value = "role_id", type = IdType.ASSIGN_UUID)
    private String roleId;
    //角色名称
    @NotBlank(message = "角色名称不能为空")
    private String roleName;

    @ApiModelProperty(value = "父角色id")
    private String parentRoleId;

    @ApiModelProperty(value = "序号")
    private String orderNum;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "权限等级")
    private String level;


}
